﻿// Created by: Aref Karimi
// For : SimHash
// Project: SimHash
// On:  02/02/2012
// 

namespace SimHash
{
    #region

    using System;

    using SimHashBusiness.Analysers;
    using SimHashBusiness.Interfaces;

    #endregion

    internal class Program
    {
        #region Methods

        private static void Main()
        {
            const string HayStack = "Hello, what you seeis a haystack";
            const string Needle = "Hello, what?";

            IAnalyser analyser = new SimHashAnalyser();
            var likeness = analyser.GetLikenessValue(Needle, HayStack);

            Console.Clear();
            Console.WriteLine("Likeness: {0}%", likeness * 100);
            Console.ReadKey();
        }

        #endregion
    }
}